﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using DTO;

namespace BUS
{
    public class BizCTPhanLoaiSP
    {
        //Get All information in table mp_CTPLSP
        public static List<CTPhanLoaiSPDto> mp_CTPhanLoaiSP_GetAll()
        {
            return DaCTPhanLoaiSP.GetAllCTPhanLoaiSP();
        }
        //Get One CTPLSP by Id in table mp_CTPLSP
        public static List<CTPhanLoaiSPDto> mp_CTPhanLoaiSP_GetOneByID(CTPhanLoaiSPDto ctPLSPDto)
        {
            return DaCTPhanLoaiSP.GetOneCTPhanLoaiSanPhamByID(ctPLSPDto);
        }

        //Insert or Update table mp_CTPLSP...........
        public static string mp_CTPhanLoaiSP_InsertUpdate(CTPhanLoaiSPDto ctPLSPDto)
        {
            return DaCTPhanLoaiSP.mp_CTPhanLoaiSP_InsertUp(ctPLSPDto);
        }
        //Delete one product in table mp_CTPLSP
        public static void mp_XuatXu_Delete(CTPhanLoaiSPDto ctPLSPDto, bool isPermanent)
        {
            DaCTPhanLoaiSP.mp_CTPhanLoaiSP_Del(ctPLSPDto, isPermanent);
        }
    }
}
